﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections.ObjectModel;

namespace AliyunMobileTestTechnology.ViewModel
{
    public class SvnStructureViewModel
    {
        public SvnStructureViewModel Parent { set; get; }
        public ObservableCollection<SvnStructureViewModel> Children { set; get; }

        public SvnStructureViewModel() 
        {
            Children = new ObservableCollection<SvnStructureViewModel>();
        }

        public StructureType Type
        {
            set;
            get;
        }
        public string Name
        {
            set;
            get;
        }
        public string Path
        {
            set;
            get;
        }
    }

    public enum StructureType
    {
        Directory = 0,
        File = 1
    }
}
